import { doRequest } from './help/request-use-axios';

const apiConfig = {
    login: {
        path: '/login',
        useMock: true,
        errMsg: {
            17011: '用户名密码错误',
        },
    },
};

export const loginService = (data = {}): RequestReturnType => {
    return doRequest({ apiItem: apiConfig.login, data });
};
